package main

import (
	"gitee.com/zaper/patch/database"
	"gitee.com/zaper/patch/exit"
	"gitee.com/zaper/patch/logconfig"
	"gitee.com/zaper/patch/os_env"
	"gitee.com/zaper/patch/register"
	"gitee.com/zaper/patch/service/heart_manager"
	"gitee.com/zaper/private-logger"
	"gitee.com/zaper/service-center-client/service"
)

func main() {
	logger.Info("=====================")
	_ = logconfig.InitializeLog()

	logger.Println("Starting up to system ============")
	os_env.InitializeEnv()
	_ = database.InitializeDB()
	register.InitializeRoute()
	service.InitializeFrameWork()
	heart_manager.InitializeHeartService()
	logger.Println("Finish startup to system============")
	exit.GracefulExitMonitor()
}
